import * as tslib_1 from "tslib";
import { Entity, NgField, NgEntity } from '@farris/devkit';
var JmtgEntity = /** @class */ (function (_super) {
    tslib_1.__extends(JmtgEntity, _super);
    function JmtgEntity() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ID',
            dataField: 'id',
            primary: true,
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmtgEntity.prototype, "id", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Version',
            dataField: 'version',
            originalDataFieldType: 'DateTime',
            initValue: '0001-01-01T00:00:00',
            path: 'Version',
            enableTimeZone: true,
        }),
        tslib_1.__metadata("design:type", String)
    ], JmtgEntity.prototype, "version", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'MerchantCode',
            dataField: 'merchantCode',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'MerchantCode',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmtgEntity.prototype, "merchantCode", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'MerchantName',
            dataField: 'merchantName',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'MerchantName',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmtgEntity.prototype, "merchantName", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Adminstrator',
            dataField: 'adminstrator',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'Adminstrator',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmtgEntity.prototype, "adminstrator", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'jmhdbh',
            dataField: 'jmhdbh',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'jmhdbh',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmtgEntity.prototype, "jmhdbh", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'jmhdmc',
            dataField: 'jmhdmc',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'jmhdmc',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmtgEntity.prototype, "jmhdmc", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'jmhdrq',
            dataField: 'jmhdrq',
            originalDataFieldType: 'DateTime',
            initValue: '0001-01-01T00:00:00',
            path: 'jmhdrq',
            enableTimeZone: true,
        }),
        tslib_1.__metadata("design:type", String)
    ], JmtgEntity.prototype, "jmhdrq", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'jmhdlx',
            dataField: 'jmhdlx',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'jmhdlx',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmtgEntity.prototype, "jmhdlx", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'bz',
            dataField: 'bz',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'bz',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmtgEntity.prototype, "bz", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'hdys',
            dataField: 'hdys',
            originalDataFieldType: 'Number',
            initValue: 0,
            path: 'hdys',
        }),
        tslib_1.__metadata("design:type", Object)
    ], JmtgEntity.prototype, "hdys", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'hdfzr',
            dataField: 'hdfzr',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'hdfzr',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], JmtgEntity.prototype, "hdfzr", void 0);
    JmtgEntity = tslib_1.__decorate([
        NgEntity({
            originalCode: "jmtg",
            nodeCode: "jmtgs",
            allowEmpty: true
        })
    ], JmtgEntity);
    return JmtgEntity;
}(Entity));
export { JmtgEntity };
